package com.wanmait.wanmarecruit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
* Created by Mybatis Generator 2022/09/19
*/
@Data
@TableName(value = "city")
public class City implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 城市关联区id
     */
    @TableField(value = "city_id")
    private Integer cityId;

    /**
     * 城市名称
     */
    @TableField(value = "city_name")
    private String cityName;

    /**
     * 城市拼音
     */
    @TableField(value = "city_py")
    private String cityPy;

    /**
     * 关联省份id
     */
    @TableField(value = "prov_id")
    private Integer provId;
    @TableField(exist = false)
    private Province province;

    /**
     * 0 - 禁用
1 - 启用 

     */
    @TableField(value = "city_state")
    private String cityState;

    @TableField(value = "enable")
    private Boolean enable;

    /**
     * 城市图片
     */
    @TableField(value = "city_pic")
    private String cityPic;

    /**
     * 热点城市
     */
    @TableField(value = "hot")
    private Boolean hot;

    @TableField(exist = false)
    private Integer positionCount;

    private static final long serialVersionUID = 1L;

    public static final String COL_CITY_ID = "city_id";

    public static final String COL_CITY_NAME = "city_name";

    public static final String COL_CITY_PY = "city_py";

    public static final String COL_PROV_ID = "prov_id";

    public static final String COL_CITY_STATE = "city_state";

    public static final String COL_ENABLE = "enable";
}